package com.zwy.linear;

/*
    双链表节点
 */
public class DLNode  implements Node {
    private Object element;
    private DLNode pre;
    private DLNode next;

    public DLNode(Object element, DLNode pre, DLNode next) {
        this.element = element;
        this.pre = pre;
        this.next = next;
    }

    public DLNode getNext(){
        return next;
    }
    public void setNext(DLNode next){
        this.next=next;
    }

    public DLNode getPre() {
        return pre;
    }

    public void setPre(DLNode pre) {
        this.pre = pre;
    }

    /**************** Node Interface Method ********************/
    @Override
    public Object getData() {
        return null;
    }

    @Override
    public void setData(Object obj) {

    }
}
